<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台管理系统 - {{$title|default='Admin'}}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <base href="{{:url('/')}}"/>

    <script src="{{:asset('__STATIC__/plugins/pace/pace.min.js')}}" type="text/javascript"></script>
    <!--<link href="{{:asset('__STATIC__/plugins/pace/themes/pace-theme-flash.css')}}" rel="stylesheet" type="text/css" />
    <link href="{{:asset('__STATIC__/plugins/layui/css/layui.css')}}" rel="stylesheet" type="text/css" />
    <link href="{{:asset('__STATIC__/admin/css/admin.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{:asset('__STATIC__/admin/css/custom.css')}}" rel="stylesheet" type="text/css"/>-->
    <link href="{{:asset('__STATIC__/admin/css/backend.css')}}" rel="stylesheet" type="text/css"/>
    <!--<link href="{{:asset('__STATIC__/plugins/iconfont/layui-icon.css')}}" rel="stylesheet" type="text/css"/>-->
    <link href="{{:asset('__STATIC__/plugins/simple-line-icons/layui-icon.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{:asset('__STATIC__/plugins/viewer/css/viewer.css')}}" rel="stylesheet" type="text/css"/>

    <link rel="icon" href="{{:asset('__PUBLIC__/favicon.ico')}}">

    {block name="pagecss"}{/block}

    <script type="text/javascript">
        // 全局变量
        var APP = {
            HOST: "",
            //ROOT : "{:asset('')}",
            ROOT : "{{:asset('public/index.php/')}}",
            STATIC : "{{:asset('__STATIC__/')}}",
            WEB_ROOT: "/",
            CONFIG: ""
        };
        // Require 全局变量
        var require = {
            //config: ''
        };
    </script>
</head>

<body class="layui-layout-body">
<div id="LAY_app" class="layadmin-tabspage-none">
    <div class="layui-layout layui-layout-admin">
        <!-- 顶部 -->
        {include file="partials:header" /}

        <!-- 左侧导航 -->
        {include file="partials:sidebar" /}

        <!-- 页面标签 -->
        <!--<div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li lay-id="{{:url('/dashboard/index')}}" lay-attr="{{:url('/dashboard/index')}}" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>-->

        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body" style="top: 50px;">
            <div class="layadmin-tabsbody-item layui-show">
                <!--<iframe src="{{:url('/dashboard/index')}}" frameborder="0" class="layadmin-iframe"></iframe>-->
                {include file="common:bcn" /}

                {block name="content"}{/block}
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>

<input type="hidden" id="session_title" value="{{:__('session_title')}}"/>
<input type="hidden" id="session_message" value="{{:__('session_message')}}"/>
<input type="hidden" id="logoutButton" value="{{:__('logoutbutton')}}">
<input type="hidden" id="keepAliveButton" value="{{:__('keepalivebutton')}}">

<input type="hidden" class="upload_url" value="{{:url('/common/upload')}}">
<input type="hidden" class="download_url" value="{{:url('/common/download')}}">

<script src="{{:asset('__STATIC__/plugins/layui/layui.js')}}" type="text/javascript"></script>
<script src="{{:asset('__STATIC__/admin/js/common.js')}}" type="text/javascript"></script>

<script type="text/javascript">
    layui.config({
        base: "{{:asset('__STATIC__/admin/')}}" // 静态资源所在路径
    }).extend({
        app: 'js/app' // 主入口模块
    }).use('app');
</script>

{block name="pagescript"}{/block}
</body>
</html>
